package cn.edu.neusoft.model.bean;

import lombok.Data;
import java.util.List;

@Data
public class User {

    private int id;
    private String code;
    private String name;
    private int sex;
    private String personType;
    private int isAdmin;
    private int paperType;
    private String paperTypeName;
    private String paperNumber;
    private String paperAddress;
    private String country;
    private int nation;
    private String nationName;
    private String phone;
    private String email;
    private String emailExt;
    private int departmentId;
    private long validStartTime;
    private long validEndTime;
    private int status;
    private String password;
    private String ownerCode;
    private int personIdentityId;
    private List<Department> departmentList;
    private long recordUpdateTime;
    private long updateTime;

    // Optional fields
    private String selfCode;
    private long birthday;
    private int age;

    @Data
    public static class Department {

        private int id;
        private int personId;
        private int departmentId;
        private int departmentType;
        private int status;
        private long createTime;
        private long updateTime;
        private boolean needInit;
    }
}